package about_interface

import "fmt"


type fooer interface {
	add_1(i int) int
}



type A struct{num int}

func (a *A)add_1(i int)  (j int){
	j = i + a.num
	a.num++
	return
}

func Test()  {
	
	var a =A{15}
	fmt.Println(a.add_1(1))
	fmt.Println(a.add_1(1))
	fmt.Println(a)
	var f fooer = &A{40}
	fmt.Println(f.add_1(10))
}